package com.dnjn.happiness.emo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.happiness.common.core.web.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * <p>
 *
 * </p>
 *
 * @author Amber
 * @since 2023-10-09
 */
@Getter
@Setter
@TableName("emo_hlbean_type")
public class HlbeanType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */

    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    


    private String hlbeanCode;

    private String hlbeanLabel;

    /**
     * 豆值
     */
    @NotNull(message = "豆值不能为空")
    private Integer hlbeanValue;

    private Integer maxCountPreDay;

    /**
     * 是否删除|0-否 1-是|valid
     */
    private String deleted;
    /**
     * 开启快乐豆功能权限
     */
    @TableField(exist = false)
    private String isHandleAuth;

    /**
     * 开启下级对上级评价功能
     */
    @TableField(exist = false)
    private String isATES;


    /**
     * 快乐值监控临界值
     */
}
